<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'userIndex.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
   ${sessionScope.user.userName }
   <hr>
   <form action="${pageContext.request.contextPath}/house/addHouse.action" method="post">
   房屋标题：<input type='text' name='houseTitle' /> <br />
   房屋类型：<input type='text' name='houseType' /> <br />
   房屋面积：<input type='text' name='houseArea' /> <br />
   出租类型：<input type='text' name='houseRent' /> <br />
   出租金额：<input type='text' name='housePrice' /> <br />
   户型：<input type='text' name='houseMold' /> <br />
   房屋地址：<input type='text' name='houseAddress' /> <br />
   配套信息：<input type='text' name='houseSupport' /> <br />
   <label style='vertical-align:top' >请输入房屋介绍：</label>
	<textarea cols='20' rows='20' name='houseDescription'></textarea><br/>
   <input type="submit" value="新建" />
   </form>
  </body>
</html>
